package com.taglab.chic.taglib.analytics;

import org.springframework.util.Assert;

public class Event {

  private String category;
  private String action;
  private String label;
  private String value;
  
  public Event(String category, String action) {
    this(category, action, null, null);
  }
  
  public Event(String category, String action, String label, String value) {
    Assert.hasLength(category, "category must be set");
    Assert.hasLength(action, "action must be set");
    this.category = category;
    this.action = action;
    this.label = label;
    this.value = value;
  }
  
  public String getCategory() {
    return category;
  }
  
  public String getAction() {
    return action;
  }
  
  public String getLabel() {
    return label;
  }
  
  public String getValue() {
    return value;
  }
  
}
